project(Sandbox)

file(GLOB_RECURSE SRC *.cpp *.h)

add_executable(Sandbox ${SRC})

target_link_libraries(Sandbox PRIVATE Graphics2d)

file(COPY ${PROJECT_SOURCE_DIR}/res DESTINATION ${PROJECT_BINARY_DIR})

if(Win32)
    add_custom_command(TARGET Sandbox POST_BUILD
        COMMAND ${CMAKE_COMMAND} -E copy ${Graphics2d_BINARY_DIR}/Graphics2d.dll
                                        ${PROJECT_BINARY_DIR})
endif()